package com.haoqizhe.kernel.activemq.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.util.ErrorHandler;

/**
 * @author  haoqizhe.li on 2017/7/11.
 */
@Service
@Slf4j
public class ListenerHandler implements ErrorHandler{

    public void handleError(Throwable throwable) {
        log.error(throwable.getMessage(),throwable);
    }
}
